package edu.uta.shorthorn.news.parser;

import edu.uta.shorthorn.news.constants.ParserType;

public abstract class FeedParserFactory {
	//static String feedUrl = "http://www.theshorthorn.com/index.php/component/ninjarsssyndicator/?feed_id=1&format=raw";
	
	public static FeedParser getParser(String feedUrl){
		return getParser(ParserType.ANDROID_SAX, feedUrl);
	}
	
	public static FeedParser getParser(ParserType type, String feedUrl){
		switch (type){
			case ANDROID_SAX:
				return new AndroidSaxFeedParser(feedUrl);
			
			default: return null;
		}
	}
}
